package cn.hua.trip.base.query;

import lombok.*;
import org.springframework.util.StringUtils;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class QueryObject {
    //当前页
    private int currentPage = 1;
    //页面大小
    private int pageSize = 4;
    //关键字
    private String keyword;
    //排序
    private String orderBy;

    public String getKeyword() {
        return StringUtils.hasLength(keyword) ? keyword : null;
    }
}
